gtkscrolledwindow: Look up correctly target in captured motion events
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 9 Jul 2020 14:10:55 +0000 (16:10 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 9 Jul 2020 14:10:55 +0000 (16:10 +0200)
commit896ebdc9d75507dfbd56089aea1d7c959a7f7d44
tree7bcc355f66847db7733bbfd29cf95fbaeb118cb5
parent06dd8c2cfd74b7204d960bc69a36234973c8b3d5
gtkscrolledwindow: Look up correctly target in captured motion events

Check correctly that the captured motion events are emitted towards the
content or one of the scrollbars, in order to have it set the expected
"over" state depending on whether the drag begins from the scrolledwindow
content or one of the scrollbars.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2879
gtk/gtkscrolledwindow.c